package com.ruoyi.constant;

/**
 * 处室标识枚举
 */
public enum RwWtlyEnum {

    YGJC(1, "省级监测"),
    SSJ(2, "双随机"),
    SXHC(3, "市县核查");


    private Integer code;
    private String desc;

    RwWtlyEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    public static String getDescByCode(Integer code) {
        for (RwWtlyEnum value : RwWtlyEnum.values()) {
            if (value.getCode().equals(code)) {
                return value.getDesc();
            }
        }
        return null;
    }



}